﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var auditData = Jxstar.findComboData('audit');

	var cols = [
	{col:{header:'记录状态', width:82, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'sj_balance__auditing1',type:'string'}},
	{col:{header:'结算审计编号', width:135, sortable:true}, field:{name:'sj_balance__sj_code',type:'string'}},
	{col:{header:'项目编号', width:100, sortable:true}, field:{name:'sj_balance__project_code',type:'string'}},
	{col:{header:'项目名称', width:230, sortable:true}, field:{name:'sj_balance__project_name',type:'string'}},
	{col:{header:'施工单位名称', width:164, sortable:true}, field:{name:'sj_balance__provider_name',type:'string'}},
	{col:{header:'合同金额(万元)', width:100, sortable:true, hidden:true, renderer:JxUtil.formatNumber(6)}, field:{name:'sj_balance__contract_money',type:'float'}},
	{col:{header:'送审金额(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(6)}, field:{name:'sj_balance__send_money',type:'float'}},
	{col:{header:'送审日期', width:100, sortable:true, hidden:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'sj_balance__send_date',type:'date'}},
	{col:{header:'项目负责人', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__project_user',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__sj_balanceid',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__project_id',type:'string'}},
	{col:{header:'送审部门ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__dept_id',type:'string'}},
	{col:{header:'送审金额大写', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__send_money1',type:'string'}},
	{col:{header:'审减额(万元)', width:100, sortable:true, hidden:true, renderer:JxUtil.formatNumber(6)}, field:{name:'sj_balance__money_del',type:'float'}},
	{col:{header:'审增额(万元)', width:100, sortable:true, hidden:true, renderer:JxUtil.formatNumber(6)}, field:{name:'sj_balance__money_add',type:'float'}},
	{col:{header:'最终审定金额(万元)', width:125, sortable:true, renderer:JxUtil.formatNumber(6)}, field:{name:'sj_balance__check_money',type:'float'}},
	{col:{header:'审定金额大写', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__check_money1',type:'string'}},
	{col:{header:'审计人', width:64, sortable:true}, field:{name:'sj_balance__check_user',type:'string'}},
	{col:{header:'审签日期', width:93, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'sj_balance__check_date',type:'date'}},
	{col:{header:'送审部门', width:100, sortable:true}, field:{name:'sj_balance__dept_name',type:'string'}},
	{col:{header:'说明事项', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__check_memo',type:'string'}},
	{col:{header:'审计编制单位', width:100, sortable:true}, field:{name:'sj_balance__check_dept',type:'string'}},
	{col:{header:'项目负责人ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__project_userid',type:'string'}},
	{col:{header:'审计人ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__check_userid',type:'string'}},
	{col:{header:'合同编号', width:100, sortable:true}, field:{name:'sj_balance__contract_code',type:'string'}},
	{col:{header:'合同名称', width:169, sortable:true}, field:{name:'sj_balance__contract_name',type:'string'}},
	{col:{header:'合同ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__contract_id',type:'string'}},
	{col:{header:'施工单位ID', width:100, sortable:true, hidden:true}, field:{name:'sj_balance__provider_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'sj_balance_get'
	};
	
	
		
	return new Jxstar.GridNode(config);
}